//
//  DBKeyDefine.h
//  KidReading
//
//  Created by telen on 15/12/2.
//  Copyright © 2015年 刘赞黄Telen. All rights reserved.
//

#ifndef KidReading_DBKeyDefine_h
#define KidReading_DBKeyDefine_h

#import <Foundation/Foundation.h>

typedef enum : NSInteger {
    notice_type_none,
    notice_type_http,
    notice_type_text,
    notice_type_updateMust,
    notice_type_canUpdate,
    notice_type_fullH5,
} notice_type;



typedef enum : NSUInteger {
    HomePageSectionType_none = 0,
    HomePageSectionType_grid = 1, //书架
    HomePageSectionType_column = 2, //栏目 advert
    HomePageSectionType_SameAgeGrid = 99999, //栏目 advert
} HomePageSectionType;

//
extern  NSString* const HomePageSectionCode_popular;//最受欢迎
extern  NSString* const HomePageSectionCode_new;   //最新
extern  NSString* const HomePageSectionCode_free;   //面费
extern  NSString* const HomePageSectionCode_common_bs;  //常规书架
extern  NSString* const HomePageSectionCode_prom_bs; //运营书架
extern  NSString* const HomePageSectionCode_ad;  //广告栏目

//
extern  NSString* const EGroupCode_cate;  //主题
extern  NSString* const EGroupCode_grade;  //年级
extern  NSString* const EGroupCode_level;  //等级
extern  NSString* const EGroupCode_age;     //年龄
extern  NSString* const EGroupCode_enbook;  //英文书
extern  NSString* const EGroupCode_cnbook;  //中文书
//

//定义排序字段
extern  NSString* const MoreOrderBy_default;//默认
extern  NSString* const MoreOrderBy_hot;   //最热
extern  NSString* const MoreOrderBy_newest;   //最新
extern  NSString* const MoreOrderBy_name;  //图书名称
//

extern  NSArray* GridColorString();

typedef enum : NSUInteger { //书架类型1常规，2运营活动，0系统[最受欢迎、最新上架、免费]
    GridType_system = 0, //系统
    GridType_normal = 1, //常规
    GridType_operate = 2, //运营
}GridType;

typedef enum : NSUInteger {
    AdvertType_none = 0,
    AdvertType_image = 1, //仅图片
    AdvertType_link = 2, //链接
    AdvertType_grid = 3, //书架
    AdvertType_book = 4, //图书
    AdvertType_theme = 5, //主题
    AdvertType_series = 6, //系列
    AdvertType_age = 7, //年龄
    AdvertType_grade = 8, //年级
    AdvertType_publish = 9, //出版社
    AdvertType_language = 10, //语言
} AdvertType;



typedef enum : NSInteger {
    bookshelf_saleFlag_type_none = 0,
    bookshelf_saleFlag_type_free = 1,
    bookshelf_saleFlag_type_LimitTime = 2,
    bookshelf_saleFlag_type_opus = 3,
} bookshelf_saleFlag_type;

typedef enum : NSInteger
{
    RecommendRoleType_none = 0,
    RecommendRoleType_par = 1, //家长
    RecommendRoleType_tea = 3, //老师
}RecommendRoleType;

typedef enum : NSInteger
{
    BookType_normal = 1, //普通，vip途径管理
    BookType_vip = BookType_normal,
    BookType_singleBuy = 2, //单本购买
    BookType_vip_or_buy = 3, //vip+单本购买
    
}BookType;

#endif
